{{- $url := .Get "url" | default "../../" -}}
{{- $version := .Get "version" -}}
{{- $legacy := .Get "legacy" -}}
{{- $apiDir := .Get "apiDir" | default "apidocs" -}}

<a href="{{ $url }}{{$version}}/">Reference</a> &#124; <a href="{{  $url }}{{$version}}/{{$apiDir}}/">API</a>